﻿// -------------------------------------------------------------------------
//    @FileName         :    NFServiceHero.h
//    @Author           :    gaoyi
//    @Date             :    2025/1/15
//    @Email            :    445267987@qq.com
//    @Module           :    NFServiceHero
//
// -------------------------------------------------------------------------

#pragma once

#include "NFComm/NFCore/NFPlatform.h"

class HeroOne;
class NFPlayer;

class NFServiceHero
{
public:
    static HeroOne* GetHero(NFPlayer* pPlayer);
    static int GetHeroJob(NFPlayer* pPlayer);

public:
    static int64_t GetAttr(NFPlayer* pPlayer, int attrType);
    static int AddAttr(NFPlayer* pPlayer, int attrType, int64_t llValue, int iReason, int param);
    static int SetAttr(NFPlayer* pPlayer, int attrType, int64_t llValue, int iReason, int param);
public:
    static int RecalcHeroAttr(NFPlayer* pPlayer, int iReason);
    static int HeroNotify(NFPlayer* pPlayer, int iReason);
};
